package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.sql.Date;
import java.util.Objects;

@Entity
@Table(name = "caring_", schema = "boot", catalog = "")
public class Caring {//客户关怀
    private int caringId;//关怀id
    private String caringName;//关怀主题
    private String qclientMan;//客户联系人
    private Date caringDate;//关怀日期
    private String caringMan;//执行人
    private String caringContent;//关怀内容
    private String caringFeedback;//客户反馈
    private String caringRemark;//备注
    private Integer caringSc;//删除状态
    private CaringType caringType;//关怀类型id
    private Kehu kehu;//客户id
    @Id
    @Column(name = "Caring_ID", nullable = false)
    public int getCaringId() {
        return caringId;
    }

    public void setCaringId(int caringId) {
        this.caringId = caringId;
    }

    @ManyToOne
    @JoinColumn(name = "Caringtype_id", referencedColumnName = "Caringtype_id")
    public CaringType getCaringType() {
        return caringType;
    }

    public void setCaringType(CaringType caringType) {
        this.caringType = caringType;
    }

    @ManyToOne
    @JoinColumn(name = "k_id", referencedColumnName = "k_id")
    public Kehu getKehu() {
        return kehu;
    }

    public void setKehu(Kehu kehu) {
        this.kehu = kehu;
    }

    @Basic
    @Column(name = "Caring_name", nullable = true, length = 200)
    public String getCaringName() {
        return caringName;
    }

    public void setCaringName(String caringName) {
        this.caringName = caringName;
    }

    @Basic
    @Column(name = "qclient_man", nullable = true, length = 200)
    public String getQclientMan() {
        return qclientMan;
    }

    public void setQclientMan(String qclientMan) {
        this.qclientMan = qclientMan;
    }

    @Basic
    @Column(name = "Caring_date", nullable = true)
    public Date getCaringDate() {
        return caringDate;
    }

    public void setCaringDate(Date caringDate) {
        this.caringDate = caringDate;
    }

    @Basic
    @Column(name = "Caring_man", nullable = true, length = 200)
    public String getCaringMan() {
        return caringMan;
    }

    public void setCaringMan(String caringMan) {
        this.caringMan = caringMan;
    }

    @Basic
    @Column(name = "Caring_content", nullable = true, length = 200)
    public String getCaringContent() {
        return caringContent;
    }

    public void setCaringContent(String caringContent) {
        this.caringContent = caringContent;
    }

    @Basic
    @Column(name = "Caring_feedback", nullable = true, length = 200)
    public String getCaringFeedback() {
        return caringFeedback;
    }

    public void setCaringFeedback(String caringFeedback) {
        this.caringFeedback = caringFeedback;
    }

    @Basic
    @Column(name = "Caring_remark", nullable = true, length = 200)
    public String getCaringRemark() {
        return caringRemark;
    }

    public void setCaringRemark(String caringRemark) {
        this.caringRemark = caringRemark;
    }

    @Basic
    @Column(name = "Caring_sc", nullable = true,length = 11)
    public Integer getCaringSc() {
        return caringSc;
    }

    public void setCaringSc(Integer caringSc) {
        this.caringSc = caringSc;
    }

    @Override
    public String toString() {
        return "Caring{" +
                "caringId=" + caringId +
                ", caringName='" + caringName + '\'' +
                ", qclientMan='" + qclientMan + '\'' +
                ", caringDate=" + caringDate +
                ", caringMan='" + caringMan + '\'' +
                ", caringContent='" + caringContent + '\'' +
                ", caringFeedback='" + caringFeedback + '\'' +
                ", caringRemark='" + caringRemark + '\'' +
                ", caringSc=" + caringSc +
                ", caringType=" + caringType +
                ", kehu=" + kehu +
                '}';
    }
}
